package com.ruoyi.system.entity;

import io.mybatis.provider.Entity.Column;
import io.mybatis.provider.Entity.Table;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * sys_login_info - 系统访问记录
 *
 * @author mkj
 */
@Data
@Table(value = "sys_login_info", remark = "系统访问记录", autoResultMap = true)
public class SysLoginInfoDO extends BaseDO {
    @Column(value = "info_id", id = true, remark = "访问ID", updatable = false, insertable = false)
    private Long infoId;

    @Column(value = "user_name", remark = "用户账号")
    private String userName;

    @Column(value = "ipaddr", remark = "登录IP地址")
    private String ipaddr;

    @Column(value = "login_location", remark = "登录地点")
    private String loginLocation;

    @Column(value = "browser", remark = "浏览器类型")
    private String browser;

    @Column(value = "os", remark = "操作系统")
    private String os;

    @Column(value = "status", remark = "登录状态（0成功 1失败）")
    private String status;

    @Column(value = "msg", remark = "提示消息")
    private String msg;

    @Column(value = "login_time", remark = "访问时间", jdbcType = JdbcType.TIMESTAMP)
    private Date loginTime;

}
